package com.zzl.bonds.ticket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzl.bonds.ticket.dto.TickeprotocolAddDto;
import com.zzl.bonds.ticket.dto.TickeprotocolUpdateDto;
import com.zzl.bonds.ticket.entity.TicketProtocolEntity;
import com.zzl.general.common.exception.SysException;
import com.zzl.general.common.serurity.entity.User;
import com.zzl.general.common.utils.PageUtils;

import java.util.Map;

/**
 * 协议
 *
 * @author gull
 * @date 2022-02-16 14:04:04
 */
@SuppressWarnings("javadoc")
public interface TicketProtocolService extends IService<TicketProtocolEntity> {
    /**
     * 分页查询
     *
     * @param params 查询参数
     * @return 分页数据
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 新增
     *
     * @param tickeprotocolAddDto 新增实体
     * @param user 当前登录用户
     * @throws SysException 业务异常
     */
    void saveTickeprotocol(TickeprotocolAddDto tickeprotocolAddDto, User user) throws SysException;

    /**
     * 修改
     * @param tickeprotocolUpdateDto 修改实体
     *
     * @param user 当前登录用户
     * @throws SysException 业务异常
     */
    void updateTickeprotocolById(TickeprotocolUpdateDto tickeprotocolUpdateDto, User user) throws SysException;



}

